package com.ccb.sc.common.modules.setting.vo;

import com.ccb.sc.common.bind.annotation.Mapping;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-21
 */
@ApiModel
public class InviteSettingsVo implements Serializable {

    @ApiModelProperty("直接上级订单转换奖励比列，[0,100]")
    @NotNull
    @Min(value = 0)
    @Max(value = 100)
    @Mapping(value = "invite.award.directSuperior")
    private BigDecimal directSuperior;


    @ApiModelProperty("间接上级订单转换奖励比列，[0,100]")
    @NotNull
    @Min(value = 0)
    @Max(value = 100)
    @Mapping(value = "invite.award.indirectSuperior")
    private BigDecimal indirectSuperior;

    public BigDecimal getDirectSuperior() {
        return directSuperior;
    }

    public void setDirectSuperior(BigDecimal directSuperior) {
        this.directSuperior = directSuperior;
    }

    public BigDecimal getIndirectSuperior() {
        return indirectSuperior;
    }

    public void setIndirectSuperior(BigDecimal indirectSuperior) {
        this.indirectSuperior = indirectSuperior;
    }
}
